<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>后台管理系统</title>

    <link href="/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min.css?v=3.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                 <th>订单序号</th>
                                 <th>用户编号</th>
								 <th>购买数量</th>
								 <th>商品图片</th>
                                 <th>商品名称</th>
                                 <th>收货姓名</th>                               									
                                 <th>收货地址</th>                                									
                                 <th>购买时间</th>
                                 <th>发货状态</th>                         									                            								
                                </tr>
                            </thead>
                            <tbody>

                          <% for(let i=0;i<result.length;i++) { %>
                                <tr class="gradeX">								    
                                   <td><%=i+1%></td>                                 									
                                   <td><%=result[i].u_id;%></td>
								   <td><%=result[i].count;%></td>
	                               <td><img src="<%=img[i]%>" style="width:100px;height:100px;"></td>
                                   <td><%=result[i].good_name;%></td>                                  									
                                   <td><%=result[i].name;%></td>                                  									
                                   <td><%=result[i].address;%></td>                              									                           									
                                   <td><%=result[i].time;%></td>
                                   <td><%if(result[i].code==1){%><a href="/admin/order/send?id=<%=result[i].order_id%>"><button type="button" class="btn btn-primary" >点击发货</button></a><%} else if(result[i].code==2){%><p>已发货</p><%} else{%><p>已收货</p><%}%>
                                  </td>								    								
                             </tr>
							 
							 <% } %>
							
                            </tbody>
                          
                        </table>

                
                    </div>
                </div>
            </div>
        </div>
      
    </div>

    <!-- 全局js -->
    <script src="/js/jquery-2.1.1.min.js"></script>
    <script src="/js/bootstrap.min.js?v=3.4.0"></script>
   


    <script src="/js/plugins/jeditable/jquery.jeditable.js"></script>
    <!-- Data Tables -->
    <!-- <script src="public/admin/js/plugins/dataTables/jquery.dataTables.js"></script> -->
    <!-- <script src="public/admin/js/plugins/dataTables/dataTables.bootstrap.js"></script> -->
    <!-- 自定义js -->
    <script src="/js/content.min.js?v=1.0.0"></script>
</body>

</html>